﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BolsaWeb.Dominio;
using BolsaWeb.Negocio;
using Spring.Web.Support;
namespace BolsaWeb.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        AvisoService AvisoService { get; set; }
        public ActionResult Index()
        {
            ViewData["Message"] = "Postula a tu Aviso";
            ICollection<Aviso> model = AvisoService.listarAvisos();
            return View(model);
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
